package com.sds.shop.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sds.fw.mvc.Action;
import com.sds.fw.mvc.HttpUtil;
import com.sds.shop.dao.BoardDAO;

public class BoardDeleteAction extends Action{
	public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
		BoardDAO.getInstance().deleteBoard(request.getParameter("board_no"));
		HttpUtil.forward(request, response, "board.do");
	}
}
